﻿using AutoMapper;
using Traceability.Api.Applications.Permissionts;
using Traceability.Api.Applications.Roless;
using Traceability.Api.Applications.Userss;
using Traceability.Commont.Domains;
using Traceability.Commont.DTOs.UsersFile;

namespace Traceability.Api.Commonts
{
    public class AutoMapperHelper:Profile
    {
        public AutoMapperHelper()
        {
            CreateMap<PermissionsCreateCommand, Permissions>();
            CreateMap<RolesCreateCommand, RolesCreateDTO>().ReverseMap();
            CreateMap<Users,UserCreateCommand>().ReverseMap();
            CreateMap<PerURLDTO, Permissions>().ReverseMap();

        }
    }
}
